Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Setting Up Transformation Matrices


Q3Matrix4x4_SetTranslate

You can use the Q3Matrix4x4_SetTranslate function to configure a 4-by-4 translation transformation matrix.

TQ3Matrix4x4 *Q3Matrix4x4_SetTranslate (
TQ3Matrix4x4 *matrix4x4, 
float xTrans, 
float yTrans, 
float zTrans);
matrix4x4
A 4-by-4 matrix.
xTrans
The desired amount of translation along the x coordinate axis.
yTrans
The desired amount of translation along the y coordinate axis.
zTrans
The desired amount of translation along the z coordinate axis.
DESCRIPTION
The Q3Matrix4x4_SetTranslate function returns, as its function result and in the matrix4x4 parameter, a transformation matrix that translates an object by the amount xTrans along the x coordinate axis, by the amount yTrans along the y coordinate axis, and by the amount zTrans along the z coordinate axis.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996